package br.com.portal.fitness.dao;

import java.io.Serializable;
import java.util.List;
import java.util.Map;

public interface IGenericDAO<T, ID extends Serializable> {

    public T buscaPeloID(ID id);

    public List<T> buscaTodos();

    public T salva(T entity);

    public T atualiza(T entity);

    public void exclui(T entity);
    
	public List<T> buscaPorPaginacao(int posicaoPrimeiraLinha,
			int maximoPorPagina, String ordernarPeloCampo,
			String ordernarAscOuDesc, Map<String, String> filtros);

}
